.class Lcom/htc/android/footprints/provider/FootprintContentProvider$2;
.super Ljava/lang/Object;
.source "FootprintContentProvider.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/provider/FootprintContentProvider;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/provider/FootprintContentProvider;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/provider/FootprintContentProvider;)V
    .locals 0
    .parameter

    .prologue
    .line 173
    iput-object p1, p0, Lcom/htc/android/footprints/provider/FootprintContentProvider$2;->this$0:Lcom/htc/android/footprints/provider/FootprintContentProvider;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 174
    const-string v2, "FootprintContentProvider"

    const-string v3, "db onChange sync to SD!"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 175
    invoke-static {}, Lcom/htc/android/footprints/utils/FootprintUtils;->touchSDFile()V

    .line 177
    new-instance v1, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->getFootprintStorageDirectory()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "footprints.db"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 181
    .local v1, targetFile:Ljava/io/File;
    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Lcom/htc/android/footprints/provider/FootprintContentProvider$2;->this$0:Lcom/htc/android/footprints/provider/FootprintContentProvider;

    #getter for: Lcom/htc/android/footprints/provider/FootprintContentProvider;->mDataBase:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v3}, Lcom/htc/android/footprints/provider/FootprintContentProvider;->access$300(Lcom/htc/android/footprints/provider/FootprintContentProvider;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    invoke-virtual {v3}, Landroid/database/sqlite/SQLiteDatabase;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v2, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->copyFile(Ljava/io/File;Ljava/io/File;)Z

    move-result v0

    .line 182
    .local v0, isSuccess:Z
    if-eqz v0, :cond_0

    .line 185
    :cond_0
    return-void
.end method
